package com.tjetc.hw2;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class hw2 {
    public static void main(String[] args) throws IOException {
        BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream("D:\\e.txt"));
        String s="I love java";
        byte[]bytes=s.getBytes();
        bufferedOutputStream.write(bytes);
        bufferedOutputStream.close();

    }
}
